javax.management.remote.message
Class CloseMessage

java.lang.Object
  extended by javax.management.remote.message.CloseMessage
All Implemented Interfaces:
Serializable, Message

public class CloseMessage
extends Object
implements Message

This class is used to inform a remote side of local closing.

See Also:
Serialized Form

Constructor Summary
CloseMessage()
          Constructs a CloseMessage with null message.
CloseMessage(String msg)
          Constructs a CloseMessage with a user specific message.
 
Method Summary
 String getMessage()
          Returns a message explaining why the connection was closed by the remote side.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseMessage

public CloseMessage()
Constructs a CloseMessage with null message.


CloseMessage

public CloseMessage(String msg)
Constructs a CloseMessage with a user specific message.

Parameters:
msg - a user specific message explaining why the connection was closed by the remote side
Method Detail

getMessage

public String getMessage()
Returns a message explaining why the connection was closed by the remote side.

Returns:
a message explaining why the connection was closed by the remote side.


Copyright © 2014 Terracotta, Inc.. All rights reserved.