public interface IIOPPrimaryToContactInfo
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext(ContactInfo primary,
ContactInfo previous,
List<ContactInfo> contactInfos) |
ContactInfo |
next(ContactInfo primary,
ContactInfo previous,
List<ContactInfo> contactInfos) |
void |
reset(ContactInfo primary) |
void reset(ContactInfo primary)
primary
- - clear any state relating to primary.boolean hasNext(ContactInfo primary, ContactInfo previous, List<ContactInfo> contactInfos)
primary
- - the key.previous
- - if null return true. Otherwise, find previous in contactInfos
and if another
ContactInfo
follows it in the list then return true. Otherwise false.contactInfos
- - the list of replicas associated with the primary.ContactInfo next(ContactInfo primary, ContactInfo previous, List<ContactInfo> contactInfos)
primary
- - the key.previous
- - if null then map primary to failover. If failover is empty then map primary to primary and return
primary. If failover is non-empty then return failover. If previous is non-null that indicates that
the previous failed. Therefore, find previous in contactInfos. Map the ContactInfo
following previous to primary and return that ContactInfo
.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.