Class WebsocketListener

java.lang.Object
com.codingchili.core.listener.transport.WebsocketListener
All Implemented Interfaces:
CoreDeployment, CoreListener

public class WebsocketListener extends Object implements CoreListener
Websocket transport listener.
  • Constructor Details

    • WebsocketListener

      public WebsocketListener()
  • Method Details

    • init

      public void init(CoreContext core)
      Description copied from interface: CoreDeployment
      Init method that is called with the context that the service was deployed from.
      Specified by:
      init in interface CoreDeployment
      Parameters:
      core - the core context to use.
    • settings

      public CoreListener settings(ListenerSettings settings)
      Specified by:
      settings in interface CoreListener
      Parameters:
      settings - listener settings for the listener.
      Returns:
      fluent
    • handler

      public CoreListener handler(CoreHandler handler)
      Specified by:
      handler in interface CoreListener
      Parameters:
      handler - the handler to invoke when the listener is triggered the handler must be initialized with the current context by the implementing class.
      Returns:
      fluent
    • start

      public void start(io.vertx.core.Promise<Void> start)
      Specified by:
      start in interface CoreDeployment
      Parameters:
      start - complete when asynchronous startup is completed.
    • stop

      public void stop(io.vertx.core.Promise<Void> stop)
      Specified by:
      stop in interface CoreDeployment
      Parameters:
      stop - complete when asynchronous shutdown is completed.
    • toString

      public String toString()
      Overrides:
      toString in class Object