com.hazelcast.client
Class ClientEndpoint

java.lang.Object
  extended by com.hazelcast.client.ClientEndpoint
All Implemented Interfaces:
Client, Endpoint

public final class ClientEndpoint
extends Object
implements Client


Method Summary
 ClientType getClientType()
          Returns type of this client
 ClientPrincipal getPrincipal()
           
 InetSocketAddress getSocketAddress()
          Returns socket address of this client
 Subject getSubject()
           
 TransactionContext getTransactionContext(String txnId)
           
 String getUuid()
          Returns unique uuid for this client
 boolean isAuthenticated()
           
 boolean isFirstConnection()
           
 boolean live()
           
 void removeTransactionContext(String txnId)
           
 void sendEvent(Object event, int callId)
           
 void sendResponse(Object response, int callId)
           
 void setDistributedObjectListener(String id)
           
 void setListenerRegistration(String service, String topic, String id)
           
 void setTransactionContext(TransactionContext transactionContext)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getUuid

public String getUuid()
Description copied from interface: Client
Returns unique uuid for this client

Specified by:
getUuid in interface Client
Specified by:
getUuid in interface Endpoint
Returns:
unique uuid for this client

live

public boolean live()

getSubject

public Subject getSubject()

isFirstConnection

public boolean isFirstConnection()

isAuthenticated

public boolean isAuthenticated()

getPrincipal

public ClientPrincipal getPrincipal()

getSocketAddress

public InetSocketAddress getSocketAddress()
Description copied from interface: Client
Returns socket address of this client

Specified by:
getSocketAddress in interface Client
Specified by:
getSocketAddress in interface Endpoint
Returns:
socket address of this client

getClientType

public ClientType getClientType()
Description copied from interface: Client
Returns type of this client

Specified by:
getClientType in interface Client
Returns:
type of this client

getTransactionContext

public TransactionContext getTransactionContext(String txnId)

setTransactionContext

public void setTransactionContext(TransactionContext transactionContext)

removeTransactionContext

public void removeTransactionContext(String txnId)

setListenerRegistration

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

setDistributedObjectListener

public void setDistributedObjectListener(String id)

sendResponse

public void sendResponse(Object response,
                         int callId)

sendEvent

public void sendEvent(Object event,
                      int callId)

toString

public String toString()
Overrides:
toString in class Object


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