com.wombat.mamda.MamdaMultiParticipantHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openmamda Show documentation
Show all versions of openmamda Show documentation
OpenMAMDA is a high performance Market Data API written on top of OpenMAMA.
/* $Id$
*
* OpenMAMA: The open middleware agnostic messaging API
* Copyright (C) 2012 NYSE Technologies, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
package com.wombat.mamda;
import com.wombat.mama.MamaBoolean;
/**
* The MamdaMultiParticipantHandler class is an interface that allows
* a developer to be notified dynamically when new participant updates are
* received on the underlying subscription.
* This is useful for handling information such as NYSE,
* AMEX and NASDAQ listed securities (including NQDS). Access to
* consolidated information (i.e., best bid and offer and consolidated
* trade info) is also available.
*
* Note that any actions to register per-participant or consolidated
* listeners can be added up front (and this callback omitted or left
* empty) if the participant IDs are known beforehand.
*/
public interface MamdaMultiParticipantHandler
{
/**
* Method invoked when the consolidated trade and BBO quote
* information for the security has become available.
* This method is invoked only if there is BBO or consolidated trade
* information available.
*/
public void onConsolidatedCreate (
MamdaSubscription subscription,
MamdaMultiParticipantManager manager);
/**
* Method invoked when the trade and quote information for a
* participant has become available for the security. This
* method
* is invoked only if there is participant quote or trade
* information available. isPrimary is reserved for future use.
*/
void onParticipantCreate (
MamdaSubscription subscription,
MamdaMultiParticipantManager manager,
String particpantId,
MamaBoolean isPrimary);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy