com.sun.sgs.io
Interface ServerEndpoint<T>

Type Parameters:
T - the address family encapsulated by this ServerEndpoint
All Known Implementing Classes:
ServerSocketEndpoint

public interface ServerEndpoint<T>

Represents an abstract local communication endpoint. Implementations of ServerEndpoint encapsulate the passive connection initiation mechanism for particular address families (such as SocketAddress).

Passive connection initiation is accomplished by obtaining a ServerEndpoint's Acceptor via createAcceptor().


Method Summary
 Acceptor<T> createAcceptor()
          Creates an Acceptor to passively listen for connections on this local ServerEndpoint.
 T getAddress()
          Returns the address of type T encapsulated by this ServerEndpoint.
 

Method Detail

createAcceptor

Acceptor<T> createAcceptor()
                           throws IOException
Creates an Acceptor to passively listen for connections on this local ServerEndpoint.

Returns:
an Acceptor configured to listen on this ServerEndpoint
Throws:
IOException - if an acceptor cannot be created

getAddress

T getAddress()
Returns the address of type T encapsulated by this ServerEndpoint.

Returns:
the address encapsulated by this ServerEndpoint

Project Darkstar, Version 0.9.8
2013-07-29 20:18:36

Copyright © 2007-2013 Sun Microsystems, Inc. All rights reserved