2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-23 04:28:01 +00:00

change internal package to api

This commit is contained in:
mohammed jasem alaajel 2022-07-16 16:50:09 +04:00
parent 81a2af8179
commit b214e3dad7
20 changed files with 38 additions and 41 deletions

View File

@ -4,10 +4,10 @@ import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Multimap; import com.google.common.collect.Multimap;
import com.imaginarycode.minecraft.redisbungee.internal.RedisBungeePlugin; import com.imaginarycode.minecraft.redisbungee.api.RedisBungeePlugin;
import com.imaginarycode.minecraft.redisbungee.internal.summoners.JedisSummoner; import com.imaginarycode.minecraft.redisbungee.api.summoners.JedisSummoner;
import com.imaginarycode.minecraft.redisbungee.internal.summoners.Summoner; import com.imaginarycode.minecraft.redisbungee.api.summoners.Summoner;
import com.imaginarycode.minecraft.redisbungee.internal.util.RedisBungeeMode; import com.imaginarycode.minecraft.redisbungee.api.util.RedisBungeeMode;
import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.NonNull;
import redis.clients.jedis.Jedis; import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPool;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal; package com.imaginarycode.minecraft.redisbungee.api;
import com.google.common.cache.Cache; import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheBuilder;
@ -8,7 +8,7 @@ import com.google.common.util.concurrent.UncheckedExecutionException;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import com.google.gson.JsonParser; import com.google.gson.JsonParser;
import com.imaginarycode.minecraft.redisbungee.internal.util.RedisTask; import com.imaginarycode.minecraft.redisbungee.api.util.RedisTask;
import redis.clients.jedis.Jedis; import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisCluster; import redis.clients.jedis.JedisCluster;
@ -16,7 +16,6 @@ import java.lang.reflect.InvocationTargetException;
import java.net.InetAddress; import java.net.InetAddress;
import java.util.Objects; import java.util.Objects;
import java.util.UUID; import java.util.UUID;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal; package com.imaginarycode.minecraft.redisbungee.api;
import com.google.common.collect.Multimap; import com.google.common.collect.Multimap;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal; package com.imaginarycode.minecraft.redisbungee.api;
/** /**
* Since each platform have their own events' implementation for example Bungeecord events extends Event while velocity don't * Since each platform have their own events' implementation for example Bungeecord events extends Event while velocity don't

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal; package com.imaginarycode.minecraft.redisbungee.api;
import redis.clients.jedis.JedisPubSub; import redis.clients.jedis.JedisPubSub;

View File

@ -1,6 +1,6 @@
package com.imaginarycode.minecraft.redisbungee.internal; package com.imaginarycode.minecraft.redisbungee.api;
import com.imaginarycode.minecraft.redisbungee.internal.util.RedisTask; import com.imaginarycode.minecraft.redisbungee.api.util.RedisTask;
import redis.clients.jedis.Jedis; import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisCluster; import redis.clients.jedis.JedisCluster;
import redis.clients.jedis.exceptions.JedisConnectionException; import redis.clients.jedis.exceptions.JedisConnectionException;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal; package com.imaginarycode.minecraft.redisbungee.api;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
import com.google.common.net.InetAddresses; import com.google.common.net.InetAddresses;

View File

@ -1,11 +1,10 @@
package com.imaginarycode.minecraft.redisbungee.internal; package com.imaginarycode.minecraft.redisbungee.api;
import com.google.common.collect.Multimap; import com.google.common.collect.Multimap;
import com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI; import com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI;
import com.imaginarycode.minecraft.redisbungee.internal.summoners.Summoner; import com.imaginarycode.minecraft.redisbungee.api.summoners.Summoner;
import com.imaginarycode.minecraft.redisbungee.internal.util.RedisBungeeMode; import com.imaginarycode.minecraft.redisbungee.api.util.RedisBungeeMode;
import com.imaginarycode.minecraft.redisbungee.internal.util.uuid.UUIDTranslator; import com.imaginarycode.minecraft.redisbungee.api.util.uuid.UUIDTranslator;
import redis.clients.jedis.Jedis;
import java.net.InetAddress; import java.net.InetAddress;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal; package com.imaginarycode.minecraft.redisbungee.api;
import com.google.common.annotations.VisibleForTesting; import com.google.common.annotations.VisibleForTesting;
import com.google.gson.Gson; import com.google.gson.Gson;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal.summoners; package com.imaginarycode.minecraft.redisbungee.api.summoners;
import redis.clients.jedis.JedisCluster; import redis.clients.jedis.JedisCluster;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal.summoners; package com.imaginarycode.minecraft.redisbungee.api.summoners;
import redis.clients.jedis.Jedis; import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPool;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal.summoners; package com.imaginarycode.minecraft.redisbungee.api.summoners;
import java.io.Closeable; import java.io.Closeable;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal.util; package com.imaginarycode.minecraft.redisbungee.api.util;
import com.google.common.io.ByteStreams; import com.google.common.io.ByteStreams;

View File

@ -1,6 +1,6 @@
package com.imaginarycode.minecraft.redisbungee.internal.util; package com.imaginarycode.minecraft.redisbungee.api.util;
import com.imaginarycode.minecraft.redisbungee.internal.RedisBungeePlugin; import com.imaginarycode.minecraft.redisbungee.api.RedisBungeePlugin;
import redis.clients.jedis.Jedis; import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisCluster; import redis.clients.jedis.JedisCluster;
import redis.clients.jedis.exceptions.JedisDataException; import redis.clients.jedis.exceptions.JedisDataException;

View File

@ -0,0 +1,5 @@
package com.imaginarycode.minecraft.redisbungee.api.util;
public enum RedisBungeeMode {
SINGLE, CLUSTER
}

View File

@ -1,10 +1,10 @@
package com.imaginarycode.minecraft.redisbungee.internal.util; package com.imaginarycode.minecraft.redisbungee.api.util;
import com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI; import com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI;
import com.imaginarycode.minecraft.redisbungee.internal.RedisBungeePlugin; import com.imaginarycode.minecraft.redisbungee.api.RedisBungeePlugin;
import com.imaginarycode.minecraft.redisbungee.internal.summoners.ClusterJedisSummoner; import com.imaginarycode.minecraft.redisbungee.api.summoners.ClusterJedisSummoner;
import com.imaginarycode.minecraft.redisbungee.internal.summoners.JedisSummoner; import com.imaginarycode.minecraft.redisbungee.api.summoners.JedisSummoner;
import com.imaginarycode.minecraft.redisbungee.internal.summoners.Summoner; import com.imaginarycode.minecraft.redisbungee.api.summoners.Summoner;
import redis.clients.jedis.Jedis; import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisCluster; import redis.clients.jedis.JedisCluster;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal.util.uuid; package com.imaginarycode.minecraft.redisbungee.api.util.uuid;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken; import com.google.gson.reflect.TypeToken;

View File

@ -1,4 +1,4 @@
package com.imaginarycode.minecraft.redisbungee.internal.util.uuid; package com.imaginarycode.minecraft.redisbungee.api.util.uuid;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
import com.google.gson.Gson; import com.google.gson.Gson;

View File

@ -1,13 +1,12 @@
package com.imaginarycode.minecraft.redisbungee.internal.util.uuid; package com.imaginarycode.minecraft.redisbungee.api.util.uuid;
import com.google.common.base.Charsets; import com.google.common.base.Charsets;
import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables; import com.google.common.collect.Iterables;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI; import com.imaginarycode.minecraft.redisbungee.api.RedisBungeePlugin;
import com.imaginarycode.minecraft.redisbungee.internal.RedisBungeePlugin;
import com.imaginarycode.minecraft.redisbungee.internal.util.RedisTask; import com.imaginarycode.minecraft.redisbungee.api.util.RedisTask;
import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.NonNull;
import redis.clients.jedis.Jedis; import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisCluster; import redis.clients.jedis.JedisCluster;

View File

@ -1,5 +0,0 @@
package com.imaginarycode.minecraft.redisbungee.internal.util;
public enum RedisBungeeMode {
SINGLE, CLUSTER
}