Package io.mats3.matssocket.impl
Interface MatsSocketStatics
- All Known Implementing Classes:
DefaultMatsSocketServer
,IncomingSrrMsgHandler
,SaneThreadPoolExecutor
,WebSocketOutgoingEnvelopes
public interface MatsSocketStatics
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
If theMatsSocketServer.MatsSocketEnvelopeDto.msg
-field is of this magic type, the String it contains - which then needs to be proper JSON - will be output directly.static class
AMatsSocketServer.MatsSocketEnvelopeWithMetaDto
will be Serialized (made into object) with the "msg" field handled specially: If it is any other class thanMatsSocketStatics.DirectJson
, default handling ensues (JSON object serialization) - but if it this particular class, it will output the (JSON) String it contains directly.static class
static class
AMatsSocketServer.MatsSocketEnvelopeWithMetaDto
will be Deserialized (made into object) with the "msg" field directly to the JSON that is present there (i.e.static class
When trying to send messages over WebSocket and get an IOException, we do not have many options of handling - the socket has probably closed. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final long
static final long
static final long
static final int
static final int
static final String
-
Method Summary
-
Field Details
-
MDC_SESSION_ID
- See Also:
-
MDC_PRINCIPAL_NAME
- See Also:
-
MDC_USER_ID
- See Also:
-
MDC_CLIENT_LIB_AND_VERSIONS
- See Also:
-
MDC_CLIENT_APP_NAME_AND_VERSION
- See Also:
-
MDC_MESSAGE_TYPE
- See Also:
-
MDC_TRACE_ID
- See Also:
-
MDC_CMID
- See Also:
-
MDC_SMID
- See Also:
-
MAX_LENGTH_OF_TOPIC_NAME
static final int MAX_LENGTH_OF_TOPIC_NAME- See Also:
-
MAX_NUMBER_OF_TOPICS_PER_SESSION
static final int MAX_NUMBER_OF_TOPICS_PER_SESSION- See Also:
-
MAX_NUMBER_OF_SESSIONS_PER_USER_ID
static final int MAX_NUMBER_OF_SESSIONS_PER_USER_ID- See Also:
-
MAX_NUMBER_OF_RECORDED_ENVELOPES_PER_SESSION
static final int MAX_NUMBER_OF_RECORDED_ENVELOPES_PER_SESSION- See Also:
-
MAX_NUMBER_OF_HELD_ENVELOPES_PER_SESSION
static final int MAX_NUMBER_OF_HELD_ENVELOPES_PER_SESSION- See Also:
-
MAX_SIZE_OF_HELD_ENVELOPE_MSGS
static final int MAX_SIZE_OF_HELD_ENVELOPE_MSGS- See Also:
-
MAX_NUMBER_OF_REDELIVERY_ATTEMPTS
static final int MAX_NUMBER_OF_REDELIVERY_ATTEMPTS- See Also:
-
MAX_NUMBER_OF_MESSAGES_PER_FORWARD_LOOP
static final int MAX_NUMBER_OF_MESSAGES_PER_FORWARD_LOOP- See Also:
-
MIN_FORWARDER_POOL_SIZE
static final int MIN_FORWARDER_POOL_SIZE- See Also:
-
MAX_FORWARDER_POOL_SIZE
static final int MAX_FORWARDER_POOL_SIZE- See Also:
-
MAX_NUMBER_OF_OUTBOX_STORE_ATTEMPTS_CSAF
static final int MAX_NUMBER_OF_OUTBOX_STORE_ATTEMPTS_CSAF- See Also:
-
MAX_NUMBER_OF_COMPENSATING_TRANSACTIONS_ATTEMPTS
static final int MAX_NUMBER_OF_COMPENSATING_TRANSACTIONS_ATTEMPTS- See Also:
-
MILLIS_BETWEEN_COMPENSATING_TRANSACTIONS_ATTEMPTS
static final int MILLIS_BETWEEN_COMPENSATING_TRANSACTIONS_ATTEMPTS- See Also:
-
MILLIS_BETWEEN_LIVELINESS_UPDATE_RUN
static final long MILLIS_BETWEEN_LIVELINESS_UPDATE_RUN- See Also:
-
MILLIS_BETWEEN_SESSION_TIMEOUT_RUN
static final long MILLIS_BETWEEN_SESSION_TIMEOUT_RUN- See Also:
-
MILLIS_BETWEEN_SCAVENGE_SESSION_REMNANTS_RUN
static final long MILLIS_BETWEEN_SCAVENGE_SESSION_REMNANTS_RUN- See Also:
-
MILLIS_SESSION_TIMEOUT_SUPPLIER
-
NUMBER_OF_OUTGOING_ENVELOPES_SCHEDULER_THREADS
static final int NUMBER_OF_OUTGOING_ENVELOPES_SCHEDULER_THREADS -
THREAD_PREFIX
- See Also:
-
-
Method Details
-
ms
default double ms(long nanos) -
msSince
default double msSince(long nanosStart) -
jacksonMapper
default com.fasterxml.jackson.databind.ObjectMapper jacksonMapper()
-