Class RemoteLoggingMessageListener
java.lang.Object
com.levigo.jadice.web.conn.server.messaging.RemoteLoggingMessageListener
- All Implemented Interfaces:
MessageListener<RemoteLoggingRequestDTO>
@Component
public final class RemoteLoggingMessageListener
extends Object
implements MessageListener<RemoteLoggingRequestDTO>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconsume
(RemoteLoggingRequestDTO dto, IncomingMessageContext incomingMessageContext) Practically, this is a fire and forget mission from the client side.void
void
setExecutorService
(ExecutorService executorService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.levigo.jadice.web.transport.server.messaging.MessageListener
consume
-
Constructor Details
-
RemoteLoggingMessageListener
public RemoteLoggingMessageListener()
-
-
Method Details
-
setExecutorService
-
consume
public CancelHandler consume(RemoteLoggingRequestDTO dto, IncomingMessageContext incomingMessageContext) throws Exception Practically, this is a fire and forget mission from the client side. However, to not let anything bad happen, send proper success/EOC/finished messages back to the client.- Specified by:
consume
in interfaceMessageListener<RemoteLoggingRequestDTO>
- Parameters:
dto
- the DTO containing the info to be logged on the serverincomingMessageContext
- the object we use to send back info - ignored here- Returns:
- an alibi handler
- Throws:
Exception
-
logMessage
-