接口的使用
org.redkale.util.Creator
-
使用Creator的程序包 程序包 说明 org.redkale.convert 提供数据的序列化和反解析功能org.redkale.convert.pb org.redkale.net.http HTTP协议包,提供HTTP协议服务器org.redkale.net.sncp SNCP协议包,提供SNCP协议服务器org.redkale.source 数据源(数据库、缓存)操作包org.redkale.util Redkale工具包 -
-
org.redkale.convert中Creator的使用
声明为Creator的org.redkale.convert中的字段 修饰符和类型 字段 说明 protected Creator<Collection<T>>
CollectionDecoder. creator
protected Creator<Map<K,V>>
MapDecoder. creator
protected Creator<T>
ObjectDecoder. creator
返回Creator的org.redkale.convert中的方法 修饰符和类型 方法 说明 <T> Creator<T>
ConvertFactory. findCreator(Class<T> type)
Creator<T>
ObjectDecoder. getCreator()
<T> Creator<T>
ConvertFactory. loadCreator(Class<T> type)
参数类型为Creator的org.redkale.convert中的方法 修饰符和类型 方法 说明 <E> void
ConvertFactory. register(Class<E> clazz, Creator<? extends E> creator)
参数类型为Creator的org.redkale.convert中的构造器 构造器 说明 AnyDecoder(Creator<? extends Map> mapCreator, Type mapObjectType, Creator<? extends Collection> listCreator, Type listObjectType, Decodeable<Reader,String> keyDecoder)
CollectionDecoder(Type type, Type componentType, Creator<Collection<T>> creator, Decodeable<R,T> componentDecoder)
MapDecoder(Type type, Type keyType, Type valueType, Creator<Map<K,V>> creator, Decodeable<R,K> keyDecoder, Decodeable<R,V> valueDecoder)
-
org.redkale.convert.pb中Creator的使用
声明为Creator的org.redkale.convert.pb中的字段 修饰符和类型 字段 说明 protected static Creator
ProtobufReader. LIS_CREATOR
参数类型为Creator的org.redkale.convert.pb中的方法 修饰符和类型 方法 说明 Collection<Boolean>
ProtobufReader. readBools(Creator<? extends Collection> creator)
Collection<Byte>
ProtobufReader. readBytes(Creator<? extends Collection> creator)
Collection<Character>
ProtobufReader. readChars(Creator<? extends Collection> creator)
Collection<Double>
ProtobufReader. readDoubles(Creator<? extends Collection> creator)
Collection<Float>
ProtobufReader. readFloats(Creator<? extends Collection> creator)
Collection<Integer>
ProtobufReader. readInts(Creator<? extends Collection> creator)
Collection<Long>
ProtobufReader. readLongs(Creator<? extends Collection> creator)
Collection<Short>
ProtobufReader. readShorts(Creator<? extends Collection> creator)
Collection<String>
ProtobufReader. readStrings(int tag, Creator<? extends Collection> creator)
参数类型为Creator的org.redkale.convert.pb中的构造器 构造器 说明 ProtobufBoolCollectionSimpledCoder(Creator<? extends Collection> creator)
ProtobufByteCollectionSimpledCoder(Creator<? extends Collection> creator)
ProtobufCharCollectionSimpledCoder(Creator<? extends Collection> creator)
ProtobufDoubleCollectionSimpledCoder(Creator<? extends Collection> creator)
ProtobufFloatCollectionSimpledCoder(Creator<? extends Collection> creator)
ProtobufIntCollectionSimpledCoder(Creator<? extends Collection> creator)
ProtobufLongCollectionSimpledCoder(Creator<? extends Collection> creator)
ProtobufShortCollectionSimpledCoder(Creator<? extends Collection> creator)
-
org.redkale.net.http中Creator的使用
类型参数类型为Creator的org.redkale.net.http中的字段 修饰符和类型 字段 说明 protected ConcurrentHashMap<Class,Creator>
HttpContext. asyncHandlerCreators
返回Creator的org.redkale.net.http中的方法 修饰符和类型 方法 说明 protected <H extends CompletionHandler>
Creator<H>HttpContext. loadAsyncHandlerCreator(Class<H> handlerClass)
-
org.redkale.net.sncp中Creator的使用
声明为Creator的org.redkale.net.sncp中的字段 修饰符和类型 字段 说明 protected Creator<? extends CompletableFuture>
SncpRemoteInfo.SncpRemoteAction. returnFutureCreator
-
org.redkale.source中Creator的使用
声明为Creator的org.redkale.source中的字段 修饰符和类型 字段 说明 protected Creator<T>
EntityFullFunc. creator
返回Creator的org.redkale.source中的方法 修饰符和类型 方法 说明 Creator<T>
EntityBuilder. getCreator()
Creator<T>
EntityFullFunc. getCreator()
Creator<T>
EntityInfo. getCreator()
获取Entity构建器参数类型为Creator的org.redkale.source中的构造器 构造器 说明 EntityFullFunc(Class<T> type, Creator<T> creator, Attribute<T,Serializable>[] attrs)
-
org.redkale.util中Creator的使用
声明为Creator的org.redkale.util中的字段 修饰符和类型 字段 说明 protected Creator<T>
ObjectPool. creator
返回Creator的org.redkale.util中的方法 修饰符和类型 方法 说明 static <T> Creator<T>
Creator. create(Class<T> clazz)
根据指定的class采用ASM技术生产Creator。static <T> Creator
Creator. create(Function<Object[],T> func)
根据Function生产Creatorstatic <T> Creator<T>
Creator. create(Supplier<T> supplier)
根据Supplier生产CreatorCreator<T>
ObjectPool. getCreator()
static <T> Creator<T>
Creator. load(Class<T> clazz)
static <T> Creator<T>
Creator. register(Class<T> clazz, Supplier<T> supplier)
static <T> Creator<T>
Creator. register(LambdaSupplier<T> supplier)
参数类型为Creator的org.redkale.util中的方法 修饰符和类型 方法 说明 static <T> ObjectPool<T>
ObjectPool. createSafePool(int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createSafePool(LongAdder creatCounter, LongAdder cycleCounter, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createSafePool(Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(LongAdder creatCounter, LongAdder cycleCounter, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, LongAdder creatCounter, LongAdder cycleCounter, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, LongAdder creatCounter, LongAdder cycleCounter, Thread unsafeThread, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
static <T> ObjectPool<T>
ObjectPool. createUnsafePool(ObjectPool<T> parent, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler)
void
ObjectPool. setCreator(Creator<T> creator)
参数类型为Creator的org.redkale.util中的构造器 构造器 说明 ObjectPool(ObjectPool<T> parent, LongAdder creatCounter, LongAdder cycleCounter, Thread unsafeThread, int max, Creator<T> creator, Consumer<T> prepare, Predicate<T> recycler, Queue<T> queue)
-