org.atmosphere.plugin.rmi
Class RMIBroadcastServiceImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.atmosphere.plugin.rmi.RMIBroadcastServiceImpl
All Implemented Interfaces:
Serializable, Remote, RMIBroadcastService

public class RMIBroadcastServiceImpl
extends UnicastRemoteObject
implements RMIBroadcastService

Default implementation of the RMIBroadcastService which can be bound to the RMI registry. It wraps a broadcaster to use when message is received.

Since:
1.1.1
Version:
1.0
Author:
Guillaume DROUET
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RMIBroadcastServiceImpl(RMIBroadcaster b)
           Builds a new instance.
 
Method Summary
 void send(Object message)
           Sends a message to be broadcasted.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMIBroadcastServiceImpl

public RMIBroadcastServiceImpl(RMIBroadcaster b)
                        throws RemoteException

Builds a new instance.

Parameters:
b - the broadcaster
Throws:
RemoteException - if an error occurs remotely
Method Detail

send

public void send(Object message)

Sends a message to be broadcasted.

Specified by:
send in interface RMIBroadcastService
Parameters:
message - the message


Copyright © 2013. All Rights Reserved.