Examples of Discharge


Examples of net.sf.kpex.builtins.Discharge

    // fluent combinators
    register(new SplitSource());
    register(new MergeSources());
    // see compose_sources,append_sources,merge_sources in lib.pro
    // discharges a Source to a Sink
    register(new Discharge());

    // multi-var operations
    register(new Def());
    register(new Set());
    register(new Val());
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.transaction.Discharge

                        _endpoint.updateDisposition(xfr.getDeliveryTag(), state, true);

                    }
                    else if(command instanceof Discharge)
                    {
                        Discharge discharge = (Discharge) command;

                        DeliveryState state = xfr.getState();
                        discharge(_session.binaryToInteger(discharge.getTxnId()), discharge.getFail());
                        _endpoint.updateDisposition(xfr.getDeliveryTag(), new Accepted(), true);

                    }
                }
            }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.transaction.Discharge

        discharge(transaction.getTxnId(), true);
    }

    private void discharge(final Binary txnId, final boolean fail)
    {
        Discharge discharge = new Discharge();
        discharge.setTxnId(txnId);
        discharge.setFail(fail);
        SectionEncoder encoder = _session.getSectionEncoder();


        AmqpValue section = new AmqpValue(discharge);
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.transaction.Discharge

    public Discharge construct(Object underlying)
    {
        if(underlying instanceof List)
        {
            List list = (List) underlying;
            Discharge obj = new Discharge();
            int position = 0;
            final int size = list.size();

            if(position < size)
            {
                Object val = list.get(position);
                position++;

                if(val != null)
                {

                    try
                    {
                        obj.setTxnId( (Binary) val );
                    }
                    catch(ClassCastException e)
                    {

                        // TODO Error
                    }

                }


            }
            else
            {
                return obj;
            }

            if(position < size)
            {
                Object val = list.get(position);
                position++;

                if(val != null)
                {

                    try
                    {
                        obj.setFail( (Boolean) val );
                    }
                    catch(ClassCastException e)
                    {

                        // TODO Error
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.transaction.Discharge

                        _endpoint.updateDisposition(xfr.getDeliveryTag(), state, true);

                    }
                    else if(command instanceof Discharge)
                    {
                        Discharge discharge = (Discharge) command;

                        DeliveryState state = xfr.getState();
                        discharge(_session.binaryToInteger(discharge.getTxnId()), discharge.getFail());
                        _endpoint.updateDisposition(xfr.getDeliveryTag(), new Accepted(), true);

                    }
                }
            }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.transaction.Discharge

        discharge(transaction.getTxnId(), true);
    }

    private void discharge(final Binary txnId, final boolean fail) throws LinkDetachedException
    {
        Discharge discharge = new Discharge();
        discharge.setTxnId(txnId);
        discharge.setFail(fail);
        SectionEncoder encoder = _session.getSectionEncoder();


        AmqpValue section = new AmqpValue(discharge);
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.transaction.Discharge

                        _endpoint.updateDisposition(xfr.getDeliveryTag(), state, true);

                    }
                    else if(command instanceof Discharge)
                    {
                        Discharge discharge = (Discharge) command;

                        DeliveryState state = xfr.getState();
                        discharge(_session.binaryToInteger(discharge.getTxnId()), discharge.getFail());
                        _endpoint.updateDisposition(xfr.getDeliveryTag(), new Accepted(), true);

                    }
                }
            }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.transaction.Discharge

         delivery.disposition(declared);
         delivery.settle();
      }
      else if (action instanceof Discharge)
      {
         Discharge discharge = (Discharge) action;
         if (discharge.getFail())
         {
            try
            {
               protonSession.getServerSession().rollback(false);
            }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.transaction.Discharge

         delivery.disposition(declared);
         delivery.settle();
      }
      else if (action instanceof Discharge)
      {
         Discharge discharge = (Discharge) action;
         if (discharge.getFail())
         {
            try
            {
               protonSession.getServerSession().rollback(false);
            }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.transaction.Discharge

         delivery.disposition(declared);
         delivery.settle();
      }
      else if (action instanceof Discharge)
      {
         Discharge discharge = (Discharge) action;
         if (discharge.getFail())
         {
            try
            {
               protonSession.getServerSession().rollback(false);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.