런타임 저장소에 객체 추가
- RuntimeStore.put(long, String)을 호출하고 매개 변수로 고유의 긴 ID와 저장할 런타임 객체를 제공합니다.
- 동일한 ID의 런타임 객체가 있는 경우 put()에서 발생되는 IllegalArgumentException을 관리할 try/catch 블록을 만듭니다.
RuntimeStore store = RuntimeStore.getRuntimeStore();
String msg = "Some shared text";
long ID = 0x60ac754bc0867248L;
try {
store.put( ID, msg );
} catch(IllegalArgumentException e) {
}
이 정보가 도움이 되었습니까? 의견을 보내 주십시오.