public class RoutedMessage extends Message
Modifier and Type | Class and Description |
---|---|
static class |
RoutedMessage.Route
Represents a route, or address frame, which will be combined with a blank
frame over the wire.
|
Message.Frame, Message.FrameBuilder
CHARSET, EMPTY_FRAME
Constructor and Description |
---|
RoutedMessage()
Construct an empty message.
|
RoutedMessage(List<RoutedMessage.Route> routes)
Takes routes with no frames.
|
RoutedMessage(List<RoutedMessage.Route> routes,
Message message)
Takes the existing message and adds routes to the beginning of it.
|
RoutedMessage(RoutedMessage.Route route)
Takes a route with no frames.
|
RoutedMessage(RoutedMessage.Route route,
Message message)
Takes the existing message and adds a route to the beginning of it.
|
Modifier and Type | Method and Description |
---|---|
Message |
getPayload()
Get the message portion of the routed message, which is the frames after
all routing frames.
|
List<RoutedMessage.Route> |
getRoutes() |
RoutedMessage.Route |
unwrap()
Mutates this Message, to remove the top-most Route, which is then returned.
|
addBuffer, addByte, addBytes, addClobs, addEmptyFrame, addFrame, addFrames, addFrames, addInt, addLong, addMap, addShort, addString, addStrings, dump, getFirstFrame, getFrames, isEmpty, isMissing, iterator, popByte, popBytes, popClobs, popFrame, popInt, popLong, popMap, popShort, popString, popStrings, pushBuffer, pushByte, pushBytes, pushClobs, pushFrame, pushFrames, pushFrames, pushInt, pushLong, pushMap, pushShort, pushString, pushStrings, size, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public RoutedMessage()
public RoutedMessage(RoutedMessage.Route route)
route
- The initial routepublic RoutedMessage(List<RoutedMessage.Route> routes)
routes
- An initial list of routespublic RoutedMessage(RoutedMessage.Route route, Message message)
route
- The initial routemessage
- A message containing frames to be addedpublic RoutedMessage(List<RoutedMessage.Route> routes, Message message)
routes
- An initial list of routesmessage
- A message containing frames to be addedpublic Message getPayload()
public List<RoutedMessage.Route> getRoutes()
public RoutedMessage.Route unwrap()
Copyright © 2019. All rights reserved.