FileDocCategorySizeDatePackage
ClientMessage.javaAPI DocAzureus 3.0.3.42298Wed Nov 15 15:17:10 GMT 2006com.aelitis.azureus.core.clientmessageservice.impl

ClientMessage

public class ClientMessage extends Object

Fields Summary
private final String
message_id
private final com.aelitis.azureus.core.clientmessageservice.impl.ClientConnection
client
private final Map
payload
private ClientMessageHandler
handler
private boolean
outcome_reported
Constructors Summary
public ClientMessage(String msg_id, com.aelitis.azureus.core.clientmessageservice.impl.ClientConnection _client, Map msg_payload, ClientMessageHandler _handler)

		this.message_id = msg_id;
		this.client = _client;
		this.payload = msg_payload;
		this.handler = _handler;
	
Methods Summary
public com.aelitis.azureus.core.clientmessageservice.impl.ClientConnectiongetClient()

  return client;  
public ClientMessageHandlergetHandler()

  return handler;  
public java.lang.StringgetMessageID()

  return message_id;  
public java.util.MapgetPayload()

  return payload;  
public voidreportComplete()

		synchronized( this ){
			if ( outcome_reported ){
				
				return;
			}
			
			outcome_reported	= true;
		}
		
		handler.sendAttemptCompleted( this );
	
public voidreportFailed(java.lang.Throwable error)

		synchronized( this ){
			if ( outcome_reported ){
				
				return;
			}
			
			outcome_reported	= true;
		}
		
		handler.sendAttemptFailed( this, error );
	
public voidsetHandler(ClientMessageHandler new_handler)

  this.handler = new_handler;