2009-01-09 1.2.0

org.eclipse.soda.dk.interest
Class InterestMask

java.lang.Object
  extended by org.eclipse.soda.dk.interest.InterestMask
All Implemented Interfaces:
InterestService
Direct Known Subclasses:
InterestMasks

public class InterestMask
extends java.lang.Object
implements InterestService

Version:
1.2.0

Field Summary
static byte[] DEFAULT_MASK
          Deprecated. #MASK_DEFAULT
static byte[] MASK_DEFAULT
          Define the mask default (byte[]) constant.
 
Constructor Summary
InterestMask()
          Constructs an instance of this class.
InterestMask(byte[] patternMask, byte[] careMask)
          Method InterestMask.
InterestMask(int offset, int length, byte[] patternMask)
          Constructs an instance of this class from the specified offset, length and pattern mask parameters.
 
Method Summary
 byte[] getCareMask()
          Method getCareMask.
 byte[] getPatternMask()
          Method getPatternMask.
 boolean isInterested(byte[] bytes)
          Is interested with the specified bytes parameter and return the boolean result.
 boolean isInterested(MessageService message)
          Method isInterested.
 void setCareMask(byte[] careMask)
          Sets the careMask.
 void setPatternMask(byte[] patternMask)
          Sets the patternMask.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MASK_DEFAULT

public static final byte[] MASK_DEFAULT
Define the mask default (byte[]) constant.

Since:
1.2

DEFAULT_MASK

public static final byte[] DEFAULT_MASK
Deprecated. #MASK_DEFAULT
Define the default mask (byte[]) constant.

Constructor Detail

InterestMask

public InterestMask()
Constructs an instance of this class.

See Also:
InterestMask(byte[],byte[]), InterestMask(int,int,byte[])

InterestMask

public InterestMask(byte[] patternMask,
                    byte[] careMask)
Method InterestMask.

Parameters:
patternMask - The pattern mask (byte[]) parameter.
careMask - The care mask (byte[]) parameter.
See Also:
InterestMask(), InterestMask(int,int,byte[])

InterestMask

public InterestMask(int offset,
                    int length,
                    byte[] patternMask)
Constructs an instance of this class from the specified offset, length and pattern mask parameters.

Parameters:
offset - The offset (int) parameter.
length - The length (int) parameter.
patternMask - The pattern mask (byte[]) parameter.
See Also:
InterestMask(), InterestMask(byte[],byte[])
Method Detail

getCareMask

public byte[] getCareMask()
Description copied from interface: InterestService
Method getCareMask.

Specified by:
getCareMask in interface InterestService
Returns:
Results of the get care mask (byte[]) value.
See Also:
InterestService.getCareMask(), setCareMask(byte[])

getPatternMask

public byte[] getPatternMask()
Description copied from interface: InterestService
Method getPatternMask.

Specified by:
getPatternMask in interface InterestService
Returns:
Results of the get pattern mask (byte[]) value.
See Also:
InterestService.getPatternMask(), setPatternMask(byte[])

isInterested

public boolean isInterested(byte[] bytes)
Is interested with the specified bytes parameter and return the boolean result.

Specified by:
isInterested in interface InterestService
Parameters:
bytes - The bytes (byte[]) parameter.
Returns:
Results of the is interested (boolean) value.
See Also:
isInterested(MessageService)

isInterested

public boolean isInterested(MessageService message)
Description copied from interface: InterestService
Method isInterested.

Specified by:
isInterested in interface InterestService
Parameters:
message - The message (MessageService) parameter.
Returns:
Results of the is interested (boolean) value.
See Also:
InterestService.isInterested(MessageService), isInterested(byte[])

setCareMask

public void setCareMask(byte[] careMask)
Sets the careMask. The careMask to set

Parameters:
careMask - The care mask (byte[]) parameter.
See Also:
getCareMask()

setPatternMask

public void setPatternMask(byte[] patternMask)
Sets the patternMask. The patternMask to set

Parameters:
patternMask - The pattern mask (byte[]) parameter.
See Also:
getPatternMask()

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.