Interface Transport

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag

public interface Transport extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag
Defines one specific transport and its properties
  • Field Details

  • Method Details

    • getAcceptorThreads

      String getAcceptorThreads()
      The number of acceptor threads listening for the transport's events
    • setAcceptorThreads

      void setAcceptorThreads(String value)
    • getSocketWriteBufferSize

      String getSocketWriteBufferSize()
      The size, in bytes, of the socket send buffer size. If the value is 0 or less, it defaults to the VM's default value.
    • setSocketWriteBufferSize

      void setSocketWriteBufferSize()
    • getSocketReadBufferSize

      String getSocketReadBufferSize()
      The size, in bytes, of the socket send buffer size. If the value is 0 or less, it defaults to the VM's default value.
    • setSocketReadBufferSize

      void setSocketReadBufferSize()
    • getBufferSizeBytes

      @Deprecated String getBufferSizeBytes()
      Deprecated.
      This attribute is now ignored. Use socket-send-Buffer-size and/or socket-write-buffer-size instead.
    • setBufferSizeBytes

      void setBufferSizeBytes(String size)
    • getByteBufferType

      @Pattern(regexp="heap|direct", message="Valid values: heap|direct", flags=CASE_INSENSITIVE) @Pattern(regexp="heap|direct",message="Valid values: heap|direct",flags=CASE_INSENSITIVE) String getByteBufferType()
      Type of ByteBuffer, which will be used with transport. Possible values are: HEAP and DIRECT
    • setByteBufferType

      void setByteBufferType(String value)
    • getClassname

      String getClassname()
      Name of class, which implements transport logic
    • setClassname

      void setClassname(String value)
    • getIoStrategy

      String getIoStrategy()
      IOStrategy to be used by Transport.
    • setIoStrategy

      void setIoStrategy(String ioStrategy)
    • getDisplayConfiguration

      String getDisplayConfiguration()
      Flush Grizzly's internal configuration to the server logs (like number of threads created, how many polled objects, etc.)
    • setDisplayConfiguration

      void setDisplayConfiguration(String bool)
    • getEnableSnoop

      @Deprecated String getEnableSnoop()
      Deprecated.
      this option is ignored by the runtime.
      Dump the requests/response information in server.log. Useful for debugging purpose, but significantly reduce performance as the request/response bytes are translated to String.
    • setEnableSnoop

      void setEnableSnoop(String bool)
    • getIdleKeyTimeoutSeconds

      String getIdleKeyTimeoutSeconds()
      Timeout, after which idle key will be cancelled and channel closed
    • setIdleKeyTimeoutSeconds

      void setIdleKeyTimeoutSeconds(String value)
    • getMaxConnectionsCount

      String getMaxConnectionsCount()
      The max number of connections the transport should handle at the same time
    • setMaxConnectionsCount

      void setMaxConnectionsCount(String value)
    • getName

      String getName()
      Transport's name, which could be used as reference
    • setName

      void setName(String value)
    • getReadTimeoutMillis

      String getReadTimeoutMillis()
      Read operation timeout in ms
    • setReadTimeoutMillis

      void setReadTimeoutMillis(String value)
    • getSelectionKeyHandler

      @Deprecated String getSelectionKeyHandler()
      Deprecated.
      This attribute as well as the named selection-key-handler element this attribute refers to has been deprecated and is effectively ignored by the runtime. No equivalent functionality is available.
      Use public SelectionKey handler, which was defined earlier in the document.
    • setSelectionKeyHandler

      void setSelectionKeyHandler(String value)
    • getSelectorPollTimeoutMillis

      String getSelectorPollTimeoutMillis()
      The time, in milliseconds, a NIO Selector will block waiting for events (users requests).
    • setSelectorPollTimeoutMillis

      void setSelectorPollTimeoutMillis(String timeout)
    • getWriteTimeoutMillis

      String getWriteTimeoutMillis()
      Write operation timeout in ms
    • setWriteTimeoutMillis

      void setWriteTimeoutMillis(String value)
    • getTcpNoDelay

      String getTcpNoDelay()
    • setTcpNoDelay

      void setTcpNoDelay(String noDelay)
    • getLinger

      String getLinger()
    • setLinger

      void setLinger(String linger)
    • getDedicatedAcceptorEnabled

      String getDedicatedAcceptorEnabled()
    • setDedicatedAcceptorEnabled

      void setDedicatedAcceptorEnabled(String isEnabled)
    • findNetworkListeners

      @DuckTyped List<NetworkListener> findNetworkListeners()
    • getParent

      @DuckTyped Transports getParent()
      Specified by:
      getParent in interface org.jvnet.hk2.config.ConfigBeanProxy