Class ConnectionCacheFactory


  • public final class ConnectionCacheFactory
    extends java.lang.Object
    A factory class for creating connections caches. Note that a rather unusual syntax is needed for calling these methods: ConnectionCacheFactory.<V>makeXXXCache() This is required because the type variable V is not used in the parameters of the factory method (there are no parameters).
    • Constructor Detail

      • ConnectionCacheFactory

        private ConnectionCacheFactory()
    • Method Detail

      • makeBlockingOutboundConnectionCache

        public static <C extends ConnectionOutboundConnectionCache<C> makeBlockingOutboundConnectionCache​(java.lang.String cacheType,
                                                                                                            int highWaterMark,
                                                                                                            int numberToReclaim,
                                                                                                            int maxParallelConnections,
                                                                                                            int ttl)
      • makeNonBlockingOutboundConnectionCache

        public static <C extends ConnectionOutboundConnectionCache<C> makeNonBlockingOutboundConnectionCache​(java.lang.String cacheType,
                                                                                                               int highWaterMark,
                                                                                                               int numberToReclaim,
                                                                                                               int maxParallelConnections,
                                                                                                               int ttl)
      • makeBlockingInboundConnectionCache

        public static <C extends ConnectionInboundConnectionCache<C> makeBlockingInboundConnectionCache​(java.lang.String cacheType,
                                                                                                          int highWaterMark,
                                                                                                          int numberToReclaim,
                                                                                                          int ttl)
      • makeNonBlockingInboundConnectionCache

        public static <C extends ConnectionInboundConnectionCache<C> makeNonBlockingInboundConnectionCache​(java.lang.String cacheType,
                                                                                                             int highWaterMark,
                                                                                                             int numberToReclaim,
                                                                                                             int ttl)