@Primary @Component public class CachingEventTypeRepository extends java.lang.Object implements EventTypeRepository
| Constructor and Description |
|---|
CachingEventTypeRepository(EventTypeRepository repository,
EventTypeCache cache) |
| Modifier and Type | Method and Description |
|---|---|
EventType |
findByName(java.lang.String name) |
java.util.List<EventType> |
list() |
void |
removeEventType(java.lang.String name) |
void |
saveEventType(EventType eventType) |
void |
update(EventType eventType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindByNameO@Autowired public CachingEventTypeRepository(EventTypeRepository repository, EventTypeCache cache)
public void saveEventType(EventType eventType) throws InternalNakadiException, DuplicatedEventTypeNameException
saveEventType in interface EventTypeRepositoryInternalNakadiExceptionDuplicatedEventTypeNameExceptionpublic EventType findByName(java.lang.String name) throws InternalNakadiException, NoSuchEventTypeException
findByName in interface EventTypeRepositoryInternalNakadiExceptionNoSuchEventTypeExceptionpublic void update(EventType eventType) throws InternalNakadiException, NoSuchEventTypeException
update in interface EventTypeRepositoryInternalNakadiExceptionNoSuchEventTypeExceptionpublic java.util.List<EventType> list()
list in interface EventTypeRepositorypublic void removeEventType(java.lang.String name)
throws InternalNakadiException,
NoSuchEventTypeException
removeEventType in interface EventTypeRepositoryInternalNakadiExceptionNoSuchEventTypeException