public class Transport extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Transport.Type
The available types of transport.
|
| Modifier and Type | Field and Description |
|---|---|
static Transport |
DEFAULT
The default mode of transport.
|
static Transport |
RELIABLE_ORDERED
The reliable/ordered mode on the default channel.
|
static Transport |
RELIABLE_UNORDERED
The reliable/unordered mode.
|
static Transport |
UNRELIABLE_ORDERED
The unreliable/ordered mode on the default channel.
|
static Transport |
UNRELIABLE_UNORDERED
The unreliable/unordered mode of transport.
|
| Modifier and Type | Method and Description |
|---|---|
Transport |
combine(Transport other)
Returns a transport that satisfies the requirements of this and the specified other
transport.
|
boolean |
equals(Object other) |
int |
getChannel()
Returns the transport channel.
|
static Transport |
getInstance(Transport.Type type)
Returns the shared instance with the specified parameters.
|
static Transport |
getInstance(Transport.Type type,
int channel)
Returns the shared instance with the specified parameters.
|
Transport.Type |
getType()
Returns the type of transport.
|
int |
hashCode() |
boolean |
isOrdered()
Checks whether this transport guarantees that messages will be received in the order in
which they were sent, if they are received at all.
|
boolean |
isReliable()
Checks whether this transport guarantees that messages will be delivered.
|
String |
toString() |
public static final Transport UNRELIABLE_UNORDERED
public static final Transport UNRELIABLE_ORDERED
public static final Transport RELIABLE_UNORDERED
public static final Transport RELIABLE_ORDERED
public static final Transport DEFAULT
public static Transport getInstance(Transport.Type type)
public static Transport getInstance(Transport.Type type, int channel)
public Transport.Type getType()
public int getChannel()
public boolean isReliable()
public boolean isOrdered()
public Transport combine(Transport other)
Copyright © 2015. All rights reserved.