1 8 9 package mx4j.tools.remote.http; 10 11 import java.io.IOException ; 12 import java.util.Map ; 13 import javax.management.remote.NotificationResult ; 14 15 import mx4j.remote.AbstractRemoteNotificationClientHandler; 16 import mx4j.remote.ConnectionNotificationEmitter; 17 import mx4j.remote.HeartBeat; 18 19 22 public class HTTPRemoteNotificationClientHandler extends AbstractRemoteNotificationClientHandler 23 { 24 private final HTTPConnection connection; 25 26 public HTTPRemoteNotificationClientHandler(HTTPConnection connection, ConnectionNotificationEmitter emitter, HeartBeat heartbeat, Map environment) 27 { 28 super(emitter, heartbeat, environment); 29 this.connection = connection; 30 } 31 32 protected NotificationResult fetchNotifications(long sequence, int maxNumber, long timeout) throws IOException 33 { 34 return connection.fetchNotifications(sequence, maxNumber, timeout); 35 } 36 } 37 | Popular Tags |