Package com.logica.smpp

Examples of com.logica.smpp.ServerPDUEvent


   * Returns received deliver pdu from the queue. If the queue is empty,
   * the method blocks for the specified timeout.
   */
  public ServerPDUEvent getDeliverEvent (long timeout)
  {
    ServerPDUEvent pduEvent = null;
    synchronized (myDeliverEvents) {
      if (myDeliverEvents.isEmpty () && timeout > 0) {
        try {
          myDeliverEvents.wait (timeout);
        }
View Full Code Here


   * Returns received data pdu from the queue. If the queue is empty,
   * the method blocks for the specified timeout.
   */
  public ServerPDUEvent getDataEvent (long timeout)
  {
    ServerPDUEvent pduEvent = null;
    synchronized (myDataEvents) {
      if (myDataEvents.isEmpty () && timeout > 0) {
        try {
          myDataEvents.wait (timeout);
        }
View Full Code Here

   * Returns received submit response pdu from the queue. If the queue
   * is empty, the method blocks for the specified timeout.
   */
  public ServerPDUEvent getSubmitResponseEvent (long timeout)
  {
    ServerPDUEvent pduEvent = null;
    synchronized (mySubmitResponseEvents) {
      if (mySubmitResponseEvents.isEmpty () && timeout > 0) {
        try {
          mySubmitResponseEvents.wait (timeout);
        }
View Full Code Here

   * Returns received query response pdu from the queue. If the queue
   * is empty, the method blocks for the specified timeout.
   */
  public ServerPDUEvent getQueryResponseEvent (long timeout)
  {
    ServerPDUEvent pduEvent = null;
    synchronized (myQueryResponseEvents) {
      if (myQueryResponseEvents.isEmpty () && timeout > 0) {
        try {
          myQueryResponseEvents.wait (timeout);
        }
View Full Code Here

   * Returns received link enquiry response pdu from the queue. If the
   * queue is empty, the method blocks for the specified timeout.
   */
  public ServerPDUEvent getEnquireLinkResponseEvent (long timeout)
  {
    ServerPDUEvent pduEvent = null;
    synchronized (myEnquireLinkResponseEvents) {
      if (myEnquireLinkResponseEvents.isEmpty () && timeout > 0) {
        try {
          myEnquireLinkResponseEvents.wait (timeout);
        }
View Full Code Here

   * @todo implement functionality to handle Data PDUs.
   */
  @Override
  public boolean receive (SmppResponseInterface response, long timeout)
  {
    ServerPDUEvent server = getEventListener ().getDeliverEvent (timeout);
    if (server != null) {
      PDU pdu = server.getPDU ();
      if (pdu instanceof DeliverSM) {
        return updateResponse (response, (DeliverSM)(pdu));
      }
      else if (pdu instanceof DataSM) {
        myLog.error ("receive - data message not supported: {}", pdu.debugString ());
View Full Code Here

TOP

Related Classes of com.logica.smpp.ServerPDUEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.