package chat.module;
|
|
import chat.module.entity.FriendShip;
|
import chat.module.entity.PublishOperator;
|
import chat.user.User;
|
import frame.object.data.Entity;
|
|
public class RelationshipBucket {
|
|
private static RelationshipBucket instance;
|
protected ConcurrentMapList<FriendShip> friendShipList;
|
|
|
private RelationshipBucket() {
|
|
}
|
|
public static synchronized RelationshipBucket getInstance() {
|
if (instance == null) {
|
instance = new RelationshipBucket();
|
}
|
|
return instance;
|
}
|
|
public void loadOne(Entity entity) {
|
FriendShip friendShip = new FriendShip();
|
friendShip.load(entity);
|
|
friendShipList.add(friendShip.getFriendid(), friendShip);
|
}
|
|
public void notify(PublishOperator operator, User sender) {
|
// TODO Auto-generated method stub
|
|
}
|
|
}
|