Package org.jredis.ri.alphazero.protocol

Examples of org.jredis.ri.alphazero.protocol.DefaultProtocolFactory


      setConnectionFlag(CONNECT_IMMEDIATELY, DEFAULT_CF_CONNECT_IMMEDIATELY);
      setConnectionFlag(Flag.STATEFUL, DEFAULT_CF_STATEFUL);
     
      setConnectionProperty(Connection.Property.MODALITY, DEFAULT_CP_CONN_MODALITY);
      setConnectionProperty(Connection.Property.MAX_CONNECT_ATTEMPT, DEFAULT_CP_MAX_CONNECT_ATTEMPT);
      setConnectionProperty(Connection.Property.PROTOCOL_FACTORY, new DefaultProtocolFactory());
      setConnectionProperty(Connection.Property.CONNECTION_FACTORY, new DefaultConnectionFactory());
     
      setHeartbeat(DEFAULT_HEARTBEAT_SEC);
    }
View Full Code Here


     * Extension point:  child classes may override to return specific {@link Protocol} implementations per their requirements.
     * @return
     */
    protected Protocol newProtocolHandler () {
      Protocol.Factory protfac = (Protocol.Factory) spec.getConnectionProperty(Property.PROTOCOL_FACTORY);
      if(protfac == null) protfac = new DefaultProtocolFactory();
      return protfac.newProtocol(spec);
//
//      return (new DefaultProtocolFactory()).newProtocol(spec);
    }
View Full Code Here

TOP

Related Classes of org.jredis.ri.alphazero.protocol.DefaultProtocolFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.