com.hazelcast.client
Interface ClientEndpoint

All Known Implementing Classes:
ClientEndpointImpl

public interface ClientEndpoint

Represents an endpoint to a client. So for each client connected to a member, a ClientEndpoint object is available.


Method Summary
 void authenticated(ClientPrincipal principal)
           
 void authenticated(ClientPrincipal principal, Credentials credentials, boolean firstConnection)
           
 void clearAllListeners()
           
 Connection getConnection()
           
 ClientPrincipal getPrincipal()
           
 Subject getSubject()
           
 TransactionContext getTransactionContext(String txnId)
           
 String getUuid()
           
 boolean isAlive()
          Checks if the endpoint is alive.
 boolean isFirstConnection()
           
 void removeTransactionContext(String txnId)
           
 void sendEvent(Data key, Object event, int callId)
           
 void sendResponse(Object response, int callId)
           
 void setDistributedObjectListener(String registrationId)
           
 void setListenerRegistration(String service, String topic, String id)
           
 void setLoginContext(LoginContext lc)
           
 void setTransactionContext(TransactionContext context)
           
 

Method Detail

isAlive

boolean isAlive()
Checks if the endpoint is alive.

Returns:
true if alive, false otherwise.

sendResponse

void sendResponse(Object response,
                  int callId)

sendEvent

void sendEvent(Data key,
               Object event,
               int callId)

setListenerRegistration

void setListenerRegistration(String service,
                             String topic,
                             String id)

getUuid

String getUuid()

setTransactionContext

void setTransactionContext(TransactionContext context)

getTransactionContext

TransactionContext getTransactionContext(String txnId)

removeTransactionContext

void removeTransactionContext(String txnId)

isFirstConnection

boolean isFirstConnection()

getSubject

Subject getSubject()

clearAllListeners

void clearAllListeners()

getConnection

Connection getConnection()

setLoginContext

void setLoginContext(LoginContext lc)

authenticated

void authenticated(ClientPrincipal principal,
                   Credentials credentials,
                   boolean firstConnection)

authenticated

void authenticated(ClientPrincipal principal)

setDistributedObjectListener

void setDistributedObjectListener(String registrationId)

getPrincipal

ClientPrincipal getPrincipal()


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.