Class ServerBootstrap

  • All Implemented Interfaces:
    AutoCloseable

    public class ServerBootstrap
    extends CrtResource
    This class wraps the aws_server_bootstrap from aws-c-io to provide a server context for all protocol stacks in the AWS Common Runtime.
    • Constructor Detail

      • ServerBootstrap

        public ServerBootstrap​(EventLoopGroup elg)
        Parameters:
        elg - event loop group to map server connections into
    • Method Detail

      • releaseNativeHandle

        protected void releaseNativeHandle()
        Description copied from class: CrtResource
        Required override method that must begin the release process of the acquired native handle
        Specified by:
        releaseNativeHandle in class CrtResource
      • canReleaseReferencesImmediately

        protected boolean canReleaseReferencesImmediately()
        Description copied from class: CrtResource
        Override that determines whether a resource releases its dependencies at the same time the native handle is released or if it waits. Resources with asynchronous shutdown processes should override this with false, and establish a callback from native code that invokes releaseReferences() when the asynchronous shutdown process has completed. See HttpClientConnectionManager for an example.
        Specified by:
        canReleaseReferencesImmediately in class CrtResource
        Returns:
        true if this resource releases synchronously, false if this resource performs async shutdown