Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util
Class NullImplementation.NullAddressProvider

java.lang.Object
  extended by com.tangosol.util.NullImplementation.NullAddressProvider

All Implemented Interfaces:
AddressProvider, SocketAddressProvider
Enclosing class:
NullImplementation

public static class NullImplementation.NullAddressProvider
extends java.lang.Object
implements AddressProvider

Null implementation of AddressProvider.


Field Summary
static NullImplementation.NullAddressProvider INSTANCE
          Singleton instance.

 

Constructor Summary
NullImplementation.NullAddressProvider()
           

 

Method Summary
 void accept()
          This method should be called by the client immediately after it determines that it can successfully use an address returned by the SocketAddressProvider.getNextAddress() method.
 java.net.InetSocketAddress getNextAddress()
          Covariant of SocketAddressProvider.getNextAddress() which returns an InetSocketAddress.
 void reject(java.lang.Throwable eCause)
          This method should be called by the client immediately after it determines that an attempt to use an address returned by the SocketAddressProvider.getNextAddress() method has failed.

 

Methods inherited from interface com.tangosol.net.SocketAddressProvider
equals, hashCode

 

Field Detail

INSTANCE

public static final NullImplementation.NullAddressProvider INSTANCE
Singleton instance.

Constructor Detail

NullImplementation.NullAddressProvider

public NullImplementation.NullAddressProvider()

Method Detail

getNextAddress

public java.net.InetSocketAddress getNextAddress()
Covariant of SocketAddressProvider.getNextAddress() which returns an InetSocketAddress.
Specified by:
getNextAddress in interface AddressProvider
Specified by:
getNextAddress in interface SocketAddressProvider
Returns:
the next available address or null if the list of available addresses was exhausted

accept

public void accept()
This method should be called by the client immediately after it determines that it can successfully use an address returned by the SocketAddressProvider.getNextAddress() method.
Specified by:
accept in interface SocketAddressProvider

reject

public void reject(java.lang.Throwable eCause)
This method should be called by the client immediately after it determines that an attempt to use an address returned by the SocketAddressProvider.getNextAddress() method has failed.
Specified by:
reject in interface SocketAddressProvider
Parameters:
eCause - (optional) an exception that carries the reason why the the caller rejected the previously returned address

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.