Class PojoMessageHandlerBase<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      PojoMessageHandlerBase​(java.lang.Object pojo, java.lang.reflect.Method method, Session session, java.lang.Object[] params, int indexPayload, boolean convert, int indexSession, long maxMessageSize)  
    • Field Detail

      • pojo

        protected final java.lang.Object pojo
      • method

        protected final java.lang.reflect.Method method
      • session

        protected final Session session
      • params

        protected final java.lang.Object[] params
      • indexPayload

        protected final int indexPayload
      • convert

        protected final boolean convert
      • indexSession

        protected final int indexSession
      • maxMessageSize

        protected final long maxMessageSize
    • Constructor Detail

      • PojoMessageHandlerBase

        public PojoMessageHandlerBase​(java.lang.Object pojo,
                                      java.lang.reflect.Method method,
                                      Session session,
                                      java.lang.Object[] params,
                                      int indexPayload,
                                      boolean convert,
                                      int indexSession,
                                      long maxMessageSize)
    • Method Detail

      • processResult

        protected final void processResult​(java.lang.Object result)
      • getWrappedHandler

        public final MessageHandler getWrappedHandler()
        Expose the POJO if it is a message handler so the Session is able to match requests to remove handlers if the original handler has been wrapped.
        Specified by:
        getWrappedHandler in interface WrappedMessageHandler
      • handlePojoMethodException

        protected final void handlePojoMethodException​(java.lang.Throwable t)