public class DecisionRequest
extends java.lang.Object
| Constructor and Description |
|---|
DecisionRequest(@NonNull ServiceNode from,
@NonNull ServiceNode to,
@NonNull java.util.Map<java.lang.String,java.lang.Object> msgCtx,
@Nullable java.util.Map<java.lang.String,java.lang.Object> envCtx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
@Nullable java.util.Map<java.lang.String,java.lang.Object> |
getEnvironmentCtx()
A decision context may hold additional information about the overall system environment of the
PEP..
|
@NonNull ServiceNode |
getFrom()
Returns the source, i.e. the origin of the communication for which a decision is requested.
|
@NonNull java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
A decision context may hold additional information about the message/event.
|
@NonNull ServiceNode |
getTo()
Returns the sink, i.e. the endpoint of the communication for which a decision is requested.
|
int |
hashCode() |
public DecisionRequest(@NonNull ServiceNode from, @NonNull ServiceNode to, @NonNull java.util.Map<java.lang.String,java.lang.Object> msgCtx, @Nullable java.util.Map<java.lang.String,java.lang.Object> envCtx)
public @NonNull ServiceNode getFrom()
public @NonNull ServiceNode getTo()
public @NonNull java.util.Map<java.lang.String,java.lang.Object> getProperties()
The context may include - timestamps - route ids - etc.
public @Nullable java.util.Map<java.lang.String,java.lang.Object> getEnvironmentCtx()
The context may include - a reference to previously taken decisions for the sake of caching - a reason for the request - identifiers of available components - etc.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object