2022-10-29 20:02:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-present RedisBungee contributors
|
|
|
|
*
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
*
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*/
|
|
|
|
|
2022-07-16 12:50:09 +00:00
|
|
|
package com.imaginarycode.minecraft.redisbungee.api.summoners;
|
2022-07-16 05:18:33 +00:00
|
|
|
|
2024-04-12 18:37:02 +00:00
|
|
|
import redis.clients.jedis.UnifiedJedis;
|
|
|
|
|
2022-07-16 05:18:33 +00:00
|
|
|
import java.io.Closeable;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class intended for future release to support redis sentinel or redis clusters
|
|
|
|
*
|
|
|
|
* @author Ham1255
|
|
|
|
* @since 0.7.0
|
|
|
|
*/
|
2024-04-12 18:37:02 +00:00
|
|
|
public interface Summoner<P extends UnifiedJedis> extends Closeable {
|
2022-07-16 05:18:33 +00:00
|
|
|
|
|
|
|
P obtainResource();
|
|
|
|
|
|
|
|
}
|