public interface AsyncMessageFilterCallback
Modifier and Type | Method and Description |
---|---|
void |
onDisconnect(PeerContext ctx)
Called when the filter is dropped because a connection is dropped.
|
void |
onMatched(Message m)
Called when the filter is matched.
|
void |
onRestarted(PeerContext ctx)
Called when the filter is dropped because a connection is restarted.
|
void |
onTimeout()
Called when the filter times out and is removed from the list of filters to match.
|
boolean |
shouldTimeout()
Check whether the filter should be removed.
|
void onMatched(Message m)
m
- The message which matched the filter.boolean shouldTimeout()
void onTimeout()
void onDisconnect(PeerContext ctx)
ctx
- void onRestarted(PeerContext ctx)
ctx
-