public enum SessionHandler extends Enum<SessionHandler>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Field and Description |
|---|---|
int |
timeout |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String sessionId,
Message message)
Don't put null message, when you need just response with empty message
Because when the transport will call
getMessage(String) it will get the null anyway. |
void |
cleanupCache() |
Message |
getMessage(String session)
Nullable, because in some case, the transport can reply with empty message.
|
boolean |
init()
Just to initialize instance not while the 1st inbound message processing,
but near the activation of the 1st trigger.
|
void |
remove(String sessionId)
remove method.
|
static SessionHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionHandler INSTANCE
public static SessionHandler[] values()
for (SessionHandler c : SessionHandler.values()) System.out.println(c);
public static SessionHandler valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nullable public Message getMessage(@Nonnull String session)
session - - transport session id. It must be generated in each receive messageMessage by session idpublic void addMessage(@Nonnull String sessionId, @Nonnull Message message)
getMessage(String) it will get the null anyway.sessionId - - the transport session id.message - - the message which build in processing of sessionpublic void remove(@Nonnull String sessionId)
sessionId - - session id generated in the ITFAbstractRouteBuilderpublic boolean init()
public void cleanupCache()
Copyright © 2025. All rights reserved.