public class MARSEndpoint extends Object
newBuilder()
.build()
to create an instance of this class.
Modifier and Type | Class and Description |
---|---|
static class |
MARSEndpoint.Builder
Builder that creates instances of
MARSEndpoint objects. |
Modifier and Type | Method and Description |
---|---|
static MARSEndpoint |
getInstance()
Returns a default instance of MARS endpoint that is automatically
configured from system properties
MARS_ROOT_PROPERTY and
MARS_ADDRESS_PROPERTY . |
String |
getMarsRootName()
Returns original user-specified value of
MARSNode.MARS_ROOT_PROPERTY . |
MARSNode |
getRoot() |
static MARSEndpoint.Builder |
newBuilder()
Creates new
MARSEndpoint.Builder instance. |
void |
release() |
public static MARSEndpoint getInstance()
MARS_ROOT_PROPERTY
and
MARS_ADDRESS_PROPERTY
.
It is created and acquired on first use. It is shared by all manually created MARSEndpoint instances that do not
explicitly specify any MARS configuration properties.public static MARSEndpoint.Builder newBuilder()
MARSEndpoint.Builder
instance.
Use MARSEndpoint.Builder.build()
to build an instance of MARSEndpoint
when
all configuration properties were set.public String getMarsRootName()
MARSNode.MARS_ROOT_PROPERTY
.
May be empty if it was not specified.public void release()
public MARSNode getRoot()
Copyright © 2015 Devexperts. All Rights Reserved.