Package org.asteriskjava.live

Examples of org.asteriskjava.live.LinkedChannelHistoryEntry


     * @param linkedChannel the channel this channel is bridged with.
     */
    synchronized void channelLinked(Date date, AsteriskChannel linkedChannel)
    {
        final AsteriskChannel oldLinkedChannel = this.linkedChannel;
        final LinkedChannelHistoryEntry historyEntry;

        historyEntry = new LinkedChannelHistoryEntry(date, linkedChannel);
        synchronized (linkedChannelHistory)
        {
            linkedChannelHistory.add(historyEntry);
        }
        this.linkedChannel = linkedChannel;
View Full Code Here


    }

    synchronized void channelUnlinked(Date date)
    {
        final AsteriskChannel oldLinkedChannel = this.linkedChannel;
        final LinkedChannelHistoryEntry historyEntry;

        synchronized (linkedChannelHistory)
        {
            if (linkedChannelHistory.isEmpty())
            {
                historyEntry = null;
            }
            else
            {
                historyEntry = linkedChannelHistory.get(linkedChannelHistory.size() - 1);
            }
        }

        if (historyEntry != null)
        {
            historyEntry.setDateUnlinked(date);
        }
        this.linkedChannel = null;
        firePropertyChange(PROPERTY_LINKED_CHANNEL, oldLinkedChannel, null);
    }
View Full Code Here

     * @param linkedChannel the channel this channel is bridged with.
     */
    synchronized void channelLinked(Date date, AsteriskChannel linkedChannel)
    {
        final AsteriskChannel oldLinkedChannel = this.linkedChannel;
        final LinkedChannelHistoryEntry historyEntry;

        historyEntry = new LinkedChannelHistoryEntry(date, linkedChannel);
        synchronized (linkedChannelHistory)
        {
            linkedChannelHistory.add(historyEntry);
        }
        this.linkedChannel = linkedChannel;
View Full Code Here

    }

    synchronized void channelUnlinked(Date date)
    {
        final AsteriskChannel oldLinkedChannel = this.linkedChannel;
        final LinkedChannelHistoryEntry historyEntry;

        synchronized (linkedChannelHistory)
        {
            if (linkedChannelHistory.isEmpty())
            {
                historyEntry = null;
            }
            else
            {
                historyEntry = linkedChannelHistory.get(linkedChannelHistory.size() - 1);
            }
        }

        if (historyEntry != null)
        {
            historyEntry.setDateUnlinked(date);
        }
        this.linkedChannel = null;
        firePropertyChange(PROPERTY_LINKED_CHANNEL, oldLinkedChannel, null);
    }
View Full Code Here

TOP

Related Classes of org.asteriskjava.live.LinkedChannelHistoryEntry

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.