com.notnoop.mpns.internal
Class MpnsQueuedService

java.lang.Object
  extended by com.notnoop.mpns.internal.AbstractMpnsService
      extended by com.notnoop.mpns.internal.MpnsQueuedService
All Implemented Interfaces:
MpnsService

public class MpnsQueuedService
extends AbstractMpnsService
implements MpnsService


Constructor Summary
MpnsQueuedService(AbstractMpnsService service)
           
 
Method Summary
protected  void push(org.apache.http.client.methods.HttpPost request, MpnsNotification message)
           
 void start()
          Starts the service.
 void stop()
          Stops the service and frees any allocated resources it created for this service.
 
Methods inherited from class com.notnoop.mpns.internal.AbstractMpnsService
getSubscriptionUri, postMessage, push, push
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.notnoop.mpns.MpnsService
push, push
 

Constructor Detail

MpnsQueuedService

public MpnsQueuedService(AbstractMpnsService service)
Method Detail

push

protected void push(org.apache.http.client.methods.HttpPost request,
                    MpnsNotification message)
Specified by:
push in class AbstractMpnsService

start

public void start()
Description copied from interface: MpnsService
Starts the service. The underlying implementation may prepare its connections or datastructures to be able to send the messages. This method is a blocking call, even if the service represents a Non-blocking push service. Once the service is returned, it is ready to accept push requests.

Specified by:
start in interface MpnsService
Overrides:
start in class AbstractMpnsService

stop

public void stop()
Description copied from interface: MpnsService
Stops the service and frees any allocated resources it created for this service. The underlying implementation should close all connections it created, and possibly stop any threads as well.

Specified by:
stop in interface MpnsService
Overrides:
stop in class AbstractMpnsService


Copyright © 2015. All Rights Reserved.